<template>
  <div class="dashboard">
    <el-row :gutter="20">
      <el-col :span="6">
        <el-card class="stat-card">
          <div class="stat-card-content">
            <div class="stat-card-icon" style="background-color: #409eff;">
              <i class="el-icon-user"></i>
            </div>
            <div class="stat-card-text">
              <div class="stat-card-count">123</div>
              <div class="stat-card-label">用户数</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="stat-card">
          <div class="stat-card-content">
            <div class="stat-card-icon" style="background-color: #67c23a;">
              <i class="el-icon-shopping-cart-full"></i>
            </div>
            <div class="stat-card-text">
              <div class="stat-card-count">456</div>
              <div class="stat-card-label">订单数</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="stat-card">
          <div class="stat-card-content">
            <div class="stat-card-icon" style="background-color: #e6a23c;">
              <i class="el-icon-s-shop"></i>
            </div>
            <div class="stat-card-text">
              <div class="stat-card-count">789</div>
              <div class="stat-card-label">产品数</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="stat-card">
          <div class="stat-card-content">
            <div class="stat-card-icon" style="background-color: #f56c6c;">
              <i class="el-icon-money"></i>
            </div>
            <div class="stat-card-text">
              <div class="stat-card-count">123</div>
              <div class="stat-card-label">销售额</div>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>
    
    <el-card style="margin-top: 20px;">
      <div slot="header">
        <span>系统信息</span>
      </div>
      <p>欢迎使用管理系统！</p>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Dashboard'
}
</script>

<style scoped>
.dashboard {
  padding: 20px;
  min-height: 100%;
  box-sizing: border-box;
}

.stat-card {
  border-radius: 8px;
}

.stat-card-content {
  display: flex;
  align-items: center;
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  margin-right: 20px;
}

.stat-card-text {
  flex: 1;
}

.stat-card-count {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.stat-card-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}
</style>